#!/usr/bin/python3

from flask import Flask,url_for,request,make_response

app = Flask(__name__)

@app.route('/')
def v_index():
    rsp = make_response('go<a href="%s">page2</a>' % url_for('v_page2'))
    rsp.set_cookie('user','welcome')
    return rsp

@app.route('/page2')
def v_page2():
    user = request.cookies['user']
    return ' %s wen sister' %user

if __name__ == "__main__":
    app.run('192.168.0.129',debug="True")
